﻿namespace AiFrame.InterfaceLib.MVP
{
    /// <summary>
    /// Represents adjustable list operations.
    /// </summary>
    public interface IAdjustableListOperations
    {
        /// <summary>
        /// Adds a column and returns the index.
        /// </summary>
        /// <param name="columnName">The column name.</param>
        /// <returns>The index of the created column.</returns>
        int AddColumn(string columnName);

        /// <summary>
        /// Sets the text for a specific element.
        /// </summary>
        /// <param name="columnIndex">Column index</param>
        /// <param name="rowIndex">Row index</param>
        /// <param name="text">The text</param>
        void SetText(int columnIndex, int rowIndex, string text);
    }
}
